package cn.com.jcoo.example.api;

import cn.com.jcoo.Res;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户注册登录注销
 */
@Slf4j
@Validated
@RestController
@RequestMapping
@RequiredArgsConstructor
public class UserSignApi {

    /**
     * 账号注册
     */
    @PostMapping("/signUp")
    public Res<?> signUp(){
        return Res.ok();
    }
    /**
     * 账号验证登录
     */
    @PostMapping("/signIn")
    public Res<?> signIn(){
        return Res.ok();
    }
    /**
     * oauth授权登录
     */
    @PostMapping("/oauth")
    public Res<?> oauth(){
        return Res.ok();
    }
    /**
     * 登录注销
     */
    @PostMapping("/signOut")
    public Res<?> logout(){
        return Res.ok();
    }

}
